Allows a 'make prep-kernels' which sets up the kernel directories, allowing
authorvhanquez@kneesa.uk.xensource.com <vhanquez@kneesa.uk.xensource.com>
Sat, 10 Dec 2005 00:11:33 +0000 (00:11 +0000)
committervhanquez@kneesa.uk.xensource.com <vhanquez@kneesa.uk.xensource.com>
Sat, 10 Dec 2005 00:11:33 +0000 (00:11 +0000)
certain types of test automation to be done more easily.

Signed-off-by: Paul Larson <pl@us.ibm.com>
Makefile
buildconfigs/Rules.mk
buildconfigs/mk.linux-2.6-xen

index e78845c5de16fd92a531681c6679e469605097c6..e51ca39ef9af80172aa2debfd9cfe549bb12cb02 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,9 @@ tools: dist-tools
 kernels: dist-kernels
 docs: dist-docs
 
+prep-kernels:
+       for i in $(XKERNELS) ; do $(MAKE) $$i-prep || exit 1; done
+
 install-xen:
        $(MAKE) -C xen install
 
@@ -156,6 +159,7 @@ help:
        @echo '  install-iptables - install iptables tools'
        @echo ''
        @echo 'Miscellaneous targets:'
+       @echo '  prep-kernels     - prepares kernel directories, does not build'
        @echo '  mkpatches        - make patches against vanilla kernels from'
        @echo '                     sparse trees'
        @echo '  uninstall        - attempt to remove installed Xen tools (use'
index 61cd1560270ae4c06c222b7dde111098274060b3..b0a7df71c7850bef271d4c5fb0fffef8951b18f4 100644 (file)
@@ -90,6 +90,9 @@ ref-%/.valid-ref: pristine-%/.valid-pristine
        touch $@ # update timestamp to avoid rebuild
 endif
 
+%-prep:
+       $(MAKE) -f buildconfigs/mk.$* prep
+
 %-install:
        $(MAKE) -f buildconfigs/mk.$* build
 
index c74145b5f6f4c0ef47a15d7b85ca0b30fa40e5b7..16e7e9d281c0a561924ac4e120f0eec0a71adbaa 100644 (file)
@@ -40,6 +40,8 @@ $(LINUX_DIR)/include/linux/autoconf.h: ref-$(OS)-$(LINUX_VER)/.valid-ref
          rm -f Makefile ; mv Mk.tmp Makefile )
        $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) oldconfig
 
+prep: $(LINUX_DIR)/include/linux/autoconf.h
+
 config: CONFIGMODE = menuconfig
 config: $(LINUX_DIR)/include/linux/autoconf.h
        $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) $(CONFIGMODE)